package com.jlf.core.annotation.filter;

import java.lang.annotation.Annotation;

/**
 * 过滤处理器接口
 *
 * @author wujr
 * 2021/1/13
 * @version 1.0
 * 变更历史
 * [wujr 2021/1/13 1.0 新增]
 */
public interface FilterProcessor<A extends Annotation> {
    @SuppressWarnings("unchecked")
    default String filter(Annotation annotation, String original) {
        return doFilter((A)annotation, original);
    }
    String doFilter(A annotation, String original);
}
